#include "face.h"
#include "solid.h"
#include <iostream>


Face::Face(Solid* _s)
: floops(NULL)
, flout(NULL)
, nextf( _s->getFace() )
, prevf( NULL )
{

  Face* faceOfSolid = _s->getFace();
  if( faceOfSolid )
  {
	  Face* face = faceOfSolid->getPrevFace();
	  face = this;
  }
  _s->setFace( this );
  fsolid = _s;
}

void Face::setFaceno(int _f) 
{
		faceno = _f;
}

void Face::setFlout(Loop* _loop) 
{
		flout = _loop;
}

Face* Face::getPrevFace()
{
  return prevf;
}


Loop* Face::getLoop()
{
return floops;

}
Solid* Face::getSolid()
{
	return fsolid;
}
Face* Face::getNextf()
{
	return nextf;
}
int Face::getFaceno()
{
	return faceno;
}
Loop* Face::getFloops()
{
	return floops;
}
void Face::setLoop( Loop* _loop )
{
	floops = _loop;
}
